/*
 * This class is part of the filesharing and VoD library for ProtoPeer. It was
 * developed in the EU ICT Project SmoothIT (FP7-2007-ICT-216259,
 * http://www.smoothit.org) and is provided as it is and without warranty.
 * It is licensed under the CC-GNU GPL:
 * http://creativecommons.org/licenses/GPL/2.0/
 */
package it.polimi.protopeer.simulation;

import protopeer.PeerIdentifier;
import protopeer.network.NetworkAddress;
import protopeer.servers.bootstrap.PeerIdentifierGenerator;

/**
 * Factory class for the peer identifiers.
 */
public class AddressPeerIdentifierGenerator implements PeerIdentifierGenerator {

	@Override
	public PeerIdentifier generatePeerIdentifier(NetworkAddress address) {
		return new AddressPeerIdentifier(address.toLongValue());
	}

}
